package com.elli0tt.pojo;

import com.elli0tt.utils.ParameterMapping;

import java.util.List;

/**
 * @author elli0tt
 * @version 1.0
 * @className BoundSql.java
 * @description 转换过后的 sql 语句对象
 * @createTime 2020-08-28 23:47:26
 */
public class BoundSql {
    /** 解析过后的sql, #{} 被处理成了 ? */
    private String sqlText;

    /** #{} 中的参数名称列表 */
    private List<ParameterMapping> parameterMappings;

    public BoundSql() {
    }

    public BoundSql(String sqlText, List<ParameterMapping> parameterMappings) {
        this.sqlText = sqlText;
        this.parameterMappings = parameterMappings;
    }

    public String getSqlText() {
        return sqlText;
    }

    public void setSqlText(String sqlText) {
        this.sqlText = sqlText;
    }

    public List<ParameterMapping> getParameterMappings() {
        return parameterMappings;
    }

    public void setParameterMappings(List<ParameterMapping> parameterMappings) {
        this.parameterMappings = parameterMappings;
    }
}
